# -*- coding:UTF-8 -*-
#将小模块变成大模块
class ModuleListHelper(object):
    """description of class"""
    mod_map={}
        #解析xml  
        #遍历解析到mod
        #add(mod.sttyle,xml)
    def add_module(self,mod):
         self.mod_map[mod.id]=mod

    def find_module(self,mod_id):
        try:
            return self.mod_map[str(mod_id)]
        except:
            return 'waning'

    def del_module(self,mod_name):
        try:
            del self.mod_map[mod_name]
        except:
            return 'warning'
        return 'ok'



